const path = require('path');
function resolve (dir) {
    return path.resolve(__dirname,dir)
}
module.exports = {
    mode: 'none',
    entry: './src/index.js',
    output: {
        path: resolve('dist'),
        filename: 'bundle-[name].js',
        publicPath: './'
    },
    devServer: {
        clean:true
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                use: [
                    {
                        loader: 'babel-loader',
                        options: {
                            presets: ['@babel/preset-env']
                        }
                    }
                ]
            }
        ]
    }
}